import request from '@/utils/request'

export function getQuestionPage(query) {
  return request({
    url: '/cms/question/list',
    method: 'get',
    params: query
  })
}


export function addQuestion(obj) {
  return request({
    url: '/cms/question',
    method: 'post',
    data: obj
  })
}

export function getQuestion(id) {
  return request({
    url: '/cms/question/' + id,
    method: 'get'
  })
}

export function delQuestion(id) {
  return request({
    url: '/cms/question/' + id,
    method: 'delete'
  })
}

export function putQuestion(obj) {
  return request({
    url: '/cms/question',
    method: 'put',
    data: obj
  })
}
